package 抽象工厂.PIFU;

public class Client {
    public static void main(String[] args) {
        //获取春天皮肤工厂
        System.out.println("----------------春天的一套皮肤-----------------------");
        PIFUFactory springFactory = new SpringFactory();
        springFactory.getButton();//获取春天按钮
        springFactory.getText();//获取春天文本框
        springFactory.getComplex();//获取春天复合框

        //获取夏天皮肤工厂
        System.out.println("----------------夏天的一套皮肤-----------------------");
        PIFUFactory summerFactory = new SummerFactory();
        summerFactory.getButton();
        summerFactory.getText();
        summerFactory.getComplex();


        //获取夏天皮肤工厂
        System.out.println("----------------新增的秋天的一套皮肤-----------------------");
        PIFUFactory autumnFactory = new AutumnFactory();
        autumnFactory.getButton();
        autumnFactory.getText();
        autumnFactory.getComplex();
    }
}
